// 引入 request 方法，假设 request 方法已经定义在某个工具文件中
import request from '/@/utils/request';

// 定义 API 路径枚举
enum Api {
    SysOAuthSignInCallback = '/sysOAuth/signInCallback',
    SysOAuthSignIn = '/sysOAuth/signIn',
}

// 定义 API 方法
export const apiSysOAuthSignInCallbackGet = (provider?: string, redirectUrl?: string) =>
    request({
        url: `${Api.SysOAuthSignInCallback}?provider=${provider}&redirectUrl=${redirectUrl}`,
        method: 'get',
    });

export const apiSysOAuthSignInGet = (provider?: string, redirectUrl?: string) =>
    request({
        url: `${Api.SysOAuthSignIn}?provider=${provider}&redirectUrl=${redirectUrl}`,
        method: 'get',
    });